<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo $cabecalho; ?>
<?php echo $menu_esq; ?>
<div id="mainContent">
<h1>Editar Senhas de Usuarios</h1>
<div><?php echo $msg;?></div>
<p>
<?php echo form::open("user/salvar"); ?>
<table width="100%" border="1">
      <tr>
        <td>nome</td>
        <td>valor</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <?php echo form::hidden('id', $user->id)?>
	  <tr>
        <td>username</td>
        <td><?php echo form::input("username", $user->username, 'disabled'); ?></td>
      </tr>
      <tr>
        <td><?php echo form::label("masterpassword", "Sua Senha"); ?></td>
        <td><?php echo form::password("masterpassword", ""); ?></td>
      </tr>
      <tr>
        <td><?php echo form::label("password", "Nova Senha"); ?></td>
        <td><?php echo form::password("password", ""); ?></td>
      </tr>
      <tr>
        <td><?php echo form::label("repassword", "Confirme a Senha"); ?></td>
        <td><?php echo form::password("repassword", ""); ?></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><?php echo form::submit('enviar', 'Editar')?>&nbsp;</td>
        <td><?php echo html::anchor('#', 'Voltar', array('onClick'=>'javascript:history.back(1)'))?>&nbsp;</td>
      </tr>
    </table>
<?php echo form::hidden('acao', 'editar_senha'); ?>
<?php echo form::close(); ?>
</p>
<!-- end #mainContent --></div>
<?php echo $rodape; ?>